var userid='ZGVtbw==';var affid='6228';var topCount = 1;var  winClose = 0;var topTime = 0;topTime = "-1";var topOK400x400 = false;
var topURL400x400='http://119.81.19.205/perawan?='+userid+'&affid='+affid;
var topWidth400x400=2000;
var topHeight400x400=1800;
var topName400x400="TopEuroAds400x400";
var topMaxCounter = 100;
var topInt = false;
var topRefTime = 240000;

function topsetTracker400x400(topURL400x400,topWin400x400)
{
try{
if ((topWin400x400) && (!topWin400x400.closed)) {topWin400x400.location.href = topURL400x400;}
} catch(e){}
}

function topsetRefresh400x400(topURL400x400,topWin400x400)
{
try{
if ((!topWin400x400) || (topWin400x400.closed)) {topOK400x400=false;topOpen400x400(topURL400x400);}
} catch(e){}
}

function topsetOpen400x400(topURL400x400,topWin400x400)
{
try{
if ((!topWin400x400) || (topWin400x400.closed)) {topOK400x400=false;}
} catch(e){}
}

function topOpen400x400(topURL400x400)
{
if (topMaxCounter < 1) {return true;}
{
if (topOK400x400 == true ) {return true;}
}
var winX = (document.all)?window.screenLeft:window.screenX;
var winY = (document.all)?window.screenTop:window.screenY;
topWin400x400 = window.open(topURL400x400, topName400x400, 'toolbar=no,status=no,resizable=yes,scrollbars=1,menubar=no,location=no,width='+topWidth400x400+',height='+topHeight400x400+'left='+winX+',top='+winY);
try{
if (topWin400x400) 
{
topWin400x400.blur();
if (topInt) clearInterval(topInt);
topInt = setInterval("topsetTracker400x400(topURL400x400,topWin400x400);",topRefTime);
topMaxCounter = topMaxCounter - 1;
topOK400x400 = true;
topWin400x400.blur();
return topWin400x400;
}
else return false;
} catch(e){}
}

function topsetCookie400x400(name, value, time)
{
var now = new Date();
now.setTime(now.getTime()+ time);
if (time > 0) document.cookie = name + '=' + value + '; expires=' + now.toGMTString();
else  document.cookie = name + '=' + value + ';';
}

function topgetCookie400x400(name)
{
var cookies = document.cookie.toString().split('; ');
var cookie, c_name, c_value;
for (var n=0; n<cookies.length; n++)
{
 cookie  = cookies[n].split('=');
 c_name  = cookie[0];
 c_value = cookie[1];
 if ( c_name == name ) {return c_value;}
}
return null;
}

function topInstall400x400()
{
if (parent)
 {
  try
   {
    if (parent.document.attachEvent){parent.document.attachEvent('onclick',topStart400x400);}
    else if (parent.document.addEventListener){parent.document.addEventListener('click',topStart400x400,false);}
   }
  catch(e)
   {
    if (document.attachEvent){document.attachEvent('onclick',topStart400x400);}
    else if (document.addEventListener){document.addEventListener('click',topStart400x400,false);}
   }
 }
else
 {
 if (document.attachEvent){document.attachEvent('onclick',topStart400x400);}
 else if (document.addEventListener){document.addEventListener('click',topStart400x400,false);}
 }
}

function topStart400x400(e)
{
if (topCount > "1") topCount = topCount - 1;
else
if (!topgetCookie400x400(topName400x400))
{
var e = e || window.event;
var topWin400x400 = topOpen400x400(topURL400x400);
if ((topWin400x400) && (topTime !== "-1")) topsetCookie400x400(topName400x400, 1, topTime);
}
}


if (winClose == 0)
{
aaa=topOpen400x400(topURL400x400);
      if (aaa) {setInterval("topsetRefresh400x400(topURL400x400,topWin400x400);",5000);}
      else {setInterval("topsetOpen400x400(topURL400x400,topWin400x400);",1000);}}
topInstall400x400();
